<template>
  <div>
    <header>
      <div class="search">
        <i class="icon-sousuo iconfont" @click="search()"></i>
        <input type="search" placeholder="按内容搜索" class="inp2" />
      </div>
    </header>
    <v-list :arr="arr"></v-list>
  </div>
</template>

<script>
import vList from "./components/vList.vue"
export default {
  data(){
    return {
      arr:[
        {id:1,name:"华为手机",img:"../../../../assets/img/商品列表 (3).png",p1:"溪牧原山茶花洁面泡沫&nbsp;&nbsp;氨基酸...",p2:"敏感肌可用，控油祛痘、男女可用....",newPrice:999,oldPrice:1099,num:999,timePrice:299,talk:999,goodTalk:99.9},
        {id:2,name:"华为手机",img:"../../../../assets/img/商品列表 (3).png",p1:"溪牧原山茶花洁面泡沫&nbsp;&nbsp;氨基酸...",p2:"敏感肌可用，控油祛痘、男女可用....",newPrice:999,oldPrice:1099,num:999,timePrice:299,talk:999,goodTalk:99.9},
        {id:3,name:"华为手机",img:"../../../../assets/img/商品列表 (3).png",p1:"溪牧原山茶花洁面泡沫&nbsp;&nbsp;氨基酸...",p2:"敏感肌可用，控油祛痘、男女可用....",newPrice:999,oldPrice:1099,num:999,timePrice:299,talk:999,goodTalk:99.9},
        {id:4,name:"华为手机",img:"../../../../assets/img/商品列表 (3).png",p1:"溪牧原山茶花洁面泡沫&nbsp;&nbsp;氨基酸...",p2:"敏感肌可用，控油祛痘、男女可用....",newPrice:999,oldPrice:1099,num:999,timePrice:299,talk:999,goodTalk:99.9},
        {id:5,name:"华为手机",img:"../../../../assets/img/商品列表 (3).png",p1:"溪牧原山茶花洁面泡沫&nbsp;&nbsp;氨基酸...",p2:"敏感肌可用，控油祛痘、男女可用....",newPrice:999,oldPrice:1099,num:999,timePrice:299,talk:999,goodTalk:99.9},
      ]
    }
  },
  components:{
    vList
  },
  methods:{
    search(){
      
    }
  }
};
</script>

<style scoped>
header {
  background-color: #ff6040;
  height: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
header .search {
  margin: 0 auto;
  width: 7.06rem;
  height: 0.6rem;
  border: 2px solid gainsboro;
  border-radius: 6px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: white;
}
header .search .inp1 {
  width: 0.32rem;
  height: 0.32rem;
  background-size: 100%;
}
header .search .inp2 {
  width: 6.3rem;
  height: 0.6rem;
  font-size: 0.26rem;
}
</style>